<template>
  <div>
    <span v-for="(item,index) in nodeList" :key="index">{{item.nodeName}}{{index == nodeList.length - 1?"":","}}</span>
  </div>
</template>

<script>
import
{
  getSendFlowNode
} from "../api/common/flowsend";
export default {
  data()
  {
    return {
      nodeList: []
    };
  },
  props: {
    // 触发滚动的对象
    unid: {
      type: String,
      default: ""
    },
    moduleName: {
      type: String
    },
    formType: {
      type: String
    }
  },
  created()
  {
    this.getSendFlowNode();
  },
  methods: {
    //获取流程可选节点数据
    getSendFlowNode()
    {
      getSendFlowNode(this.moduleName, this.unid, this.formType).then(res =>
      {
        this.nodeList = res.result.nodes || [];
        this.multi = res.result.multi;
      })
    },
  }
}
</script>

<style lang="scss" scoped>
</style>